package com.lsqingfeng.springboot.controller;

import com.lsqingfeng.springboot.base.ResultCode;
import com.lsqingfeng.springboot.exception.BizException;
import com.lsqingfeng.springboot.vo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: ThirdException
 * @description:
 * @author: sh.Liu
 * @date: 2022-01-14 11:09
 */
@RestController
public class ThirdExceptionController {

    @GetMapping("exception")
    public User second(){
        System.out.println(1);
        throw new BizException(ResultCode.BIZ_ERROR.getCode(), "用户名密码错误");
    }


}
